import Layout from '@/layout'
import employees from '@/views/employees'
import myimport from '../../views/employees/import/index.vue'
import detail from '../../views/employees/detail/index.vue'
import print from '@/views/employees/components/print.vue'
export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '',
      component: employees,
      name: 'employees',
      meta: { title: '员工', icon: 'people' }
    },
    {
      path: 'import',
      component: myimport,
      hidden: true, // 当前路由不显示左侧菜单栏中
      meta: {
        title: '导入数据',
        icon: 'people'
      }
    },
    {
      path: 'detail',
      component: detail,
      hidden: true, // 当前路由不显示左侧菜单栏中
      meta: {
        title: '员工详情',
        icon: 'people'
      }
    },
    {
      path: 'print/:id',
      component: print,
      hidden: true, // 当前路由不显示左侧菜单栏中
      meta: {
        title: '打印页面',
        icon: 'people'
      }
    }
  ]
}
